{% extends "base_generic.html" %}
{% block content %}
<div class="d-flex justify-content-center align-items-center" style="min-height: 80vh;">
  <div class="card shadow p-4 text-center" style="min-width:350px; max-width:400px; width:100%;">
    <h2 class="mb-4 text-success"><i class="bi bi-check-circle me-2"></i>注册成功！</h2>
    <p class="mb-4">2秒后自动跳转到登录界面，如未跳转请 <a href="{{ login_url }}" class="btn btn-link p-0 align-baseline">点击这里登录</a>。</p>
    <div class="spinner-border text-primary" role="status">
      <span class="visually-hidden">Loading...</span>
    </div>
  </div>
</div>
<script>
  setTimeout(function() {
    window.location.href = "{{ login_url }}";
  }, 2000);
</script>
{% endblock %} 